<!DOCTYPE html>
<!--suppress ALL-->
<!--关闭下划线-->
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>xhlMr - 练习</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }

        table {
            table-layout: fixed;
        }

        td {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
</head>

<body>

<!--		顶部导航栏-->
<div th:replace="~{commons/commons :: top}"></div>

<div class="container-fluid">
    <div class="row">
        <!--				侧边栏-->
        <div th:replace="~{commons/commons :: sidebar(active='hotnews')}"></div>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <div style="height: 65px;text-align: center;color: red;font-size: 16px;font-weight:bold">添加新闻</div>

            <div style="height: 300px;width: 1000px;border: 2px solid red;margin: 0px auto">
                <form class="form-horizontal" role="form" th:action="@{addnews}" th:method="post">

                    <input name="cauthor" style="visibility:hidden" readonly="true" th:value="${session.loginUser}">
                    <input name="uid" style="visibility:hidden" readonly="true" th:value="${session.loginUid}">
                    <div class="form-group" style="margin-top: 20px;">

                        <label for="firstname" class="col-sm-2 control-label">标题</label>
                        <div class="col-sm-10" style="height: 30px;width: 200px">
                            <input type="text" name="titile" class="form-control" id="titile" placeholder="请输入标题">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">内容</label>
                        <div style="width: 200px;margin-left: 185px;">
                            <textarea class="form-control" name="ccontent"></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">添加</button>
                        </div>
                    </div>
                </form>
            </div>
        </main>
    </div>
</div>


</body>

</html>